package cn.javacv.gulimall.product.feign;

import cn.javacv.gulimall.common.utils.R;
import cn.javacv.gulimall.common.vo.SkuHasStockVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient("ware")
public interface WareFeignService {
    /**
     * 查询当前SKU是否有库存
     */
    @PostMapping("/ware/waresku/getHasStock")
    R getHasStock(@RequestBody List<Long> skuIds);
}
